#!/usr/bin/expect -f
spawn su root
expect "Password:"
send "你的本地Linux系统密码\r"
spawn sh ./deploy_server.sh
expect "Username for 'https://gitee.com': "
send "langkye\r"
expect "Password for 'https://langkye@gitee.com': "
send "你的密码\r"
interact